#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
class MyPushButton;
class MyCoin;
class QLabel;
class QSound;
class PlayScene : public QMainWindow
{
    Q_OBJECT
public:
    explicit PlayScene(int level,QWidget *parent = nullptr);
    void     init();
    void     setConnect();
    void paintEvent(QPaintEvent*);
signals:
    void playSceneBack();

private:
    int m_nCurrentLevel;
    QAction* m_QuitAction;
    MyPushButton*   m_CloseBtn;
    int     gameArray[4][4];
    MyCoin* coinBtn[4][4];
    QLabel* m_winLabel;
    bool    m_isWin;
public slots:
    void onAcitionQuitClicked();
    void onCloseBtnClicked();
    void startReturnToChoose();
private:
    QSound* m_flipSound;
    QSound* m_winSound;
};

#endif // PLAYSCENE_H
